package com.may.wlrj.util;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.may.wlrj.entity.SysEntity;

@Service
public class SysUtil {
	private Logger log = Logger.getLogger(SysUtil.class);
	private List<SysEntity> syslist = null;	

	
    
	private SysUtil() {
		//在整个运行期间 只执行一次的业务代码

	}
	
	public List<SysEntity> getSyslist() {
		return syslist;
	}
	public void setSyslist(List<SysEntity> syslist) {
		log.info("[X]=========================setSyslist");
		this.syslist = syslist;
	}
 
	// 2.创建一个类的实例对象
	//private static SysUtil sysUtil;
 
	// 内部类对本类实例化
	private static class SingletonHelper {
		private static final SysUtil sutil = new SysUtil();
	}
 
	// 3.定义一个共有方法
	public static SysUtil getInstance() {
		return SingletonHelper.sutil;
	}
}
